import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:my_app/app/core/utils/log_util.dart';
import 'package:my_app/app/core/theme/app_colors.dart';
import 'package:my_app/app/core/theme/app_text_theme.dart';
import 'package:my_app/app/widgets/cell/cell.dart';

class CellPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('CellPage')),
      body: ListView(
        children: [
          Cell(
            titleText: "这是标题",
            valueText: "这是内容",
            rightIcon: Icons.arrow_forward_ios,
            onTap: () {
              LogUtil.v("打印");
            },
          ),
          Cell(
            titleText: "这是标题",
            valueText: "内容",
            label: Text("我是描述", style: tips),
          ),
          Cell(
            icon: Icon(
              Icons.lock,
              size: 16,
              color: textTipsColor,
            ),
            titleText: "单元格",
          ),
          Cell(
            icon: SvgPicture.asset(
              'assets/svg/qiakr.svg',
              semanticsLabel: 'qiakr',
              width: 18.0,
            ),
            titleText: "单元格",
          )
        ],
      ),
    );
  }
}
